<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!--String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";-->


<!DOCTYPE html>
<html lang="zh-cn">
  <head>
	  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	  <meta charset="utf-8">
	  <!-- Title and other stuffs -->
	  <title>Bootstrap响应式后台管理系统</title> 
	  <meta name="keywords" content="Bootstrap后台管理系统" />
	  <meta name="description" content="Bootstrap后台管理系统" />
	  <meta name="viewport" content="width=device-width, initial-scale=1.0">
	  <meta name="author" content="">
	 <jsp:include page="../bootstrap/top_css.jsp"></jsp:include>
	  
	  <link rel="shortcut icon" href="img/favicon/favicon.png">
  </head>
  
  <body>
<!-- top -->
	<jsp:include page="../bootstrap/top.jsp"></jsp:include>
<!-- Header starts -->
  <header>
	<jsp:include page="../bootstrap/top_header.jsp"></jsp:include>
  </header>
<!-- Header ends -->

<!-- Main content starts -->

<div class="content">

  	<!-- 左首页列表 -->
    <jsp:include page="../bootstrap/left.jsp"></jsp:include>

  	<!-- 大容器 -->
  	<div class="mainbar">
      
	    <!-- 首页标题 -->
	    <div class="page-head">
	      <h2 class="pull-left"><i class="icon-home"></i> 编辑个人信息</h2>

        <!-- Breadcrumb -->
        <div class="bread-crumb pull-right">
          <a href="#"><i class="icon-home"></i> 首页</a> 
          <!-- Divider -->
          <span class="divider">/</span> 
          <b class="bread-current">编辑个人信息</b>
        </div>
        
        <div class="clearfix"></div>

	    </div>

	    <!-- 正文 -->
	    <table class="table table-bordered" cellSpacing="1" cellPadding="4" width="100%" border="0">
					<tr bgcolor="gray">
						<td colspan="2" class="tb_pink_border"><font style="color: white; font-size: 13px; font-weight: bold;">修改用户信息</font></td>
					</tr>
		</table>
		<form class="form-horizontal" action="${pageContext.request.contextPath }/user/editUser.action" method="post" >
	                    <!-- Registration form starts -->
	                                      <!-- Name -->
	                                          <div class="form-group">
	                                            <label class="control-label col-lg-3" for="name"> <font color="red">*</font>&nbsp;&nbsp;用户名</label>
	                                            <div class="col-lg-9">
	                                              <input type="text" required="required" class="form-control" id="userName" name="userName" value="${user.userName }">
	                                              <input type="hidden" name="uuid" value="${user.uuid }">
	                                              
	                                            </div>
	                                          </div>   
	                                          <!-- Email -->
	                                          <div class="form-group">
	                                            <label class="control-label col-lg-3" for="email"> <font color="red">*</font>&nbsp;&nbsp;Email</label>
	                                            <div class="col-lg-9">
	                                              <input type="text" required="required" class="form-control" id="email" name="email" value="${user.email }">
	                                            </div>
	                                          </div>
	                                          <!-- Select box -->
	                                          <div class="form-group">
	                                            <label class="control-label col-lg-3"> <font color="red">*</font>&nbsp;&nbsp;住址</label>
	                                            <div class="col-lg-9">                               
	                                               <input type="text" required="required" class="form-control" id="address" name="address" value="${user.address }">
	                                            </div>
	                                          </div>                                           
	                                          <!-- Username -->
	                                          <div class="form-group">
	                                            <label class="control-label col-lg-3" for="name"> <font color="red">*</font>&nbsp;&nbsp;真实姓名</label>
	                                            <div class="col-lg-9">
	                                              <input type="text" required="required"  class="form-control" id="name"  name="name" value="${user.name }">
	                                            </div>
	                                          </div>
	                                          <!-- Password -->
	                                          <div class="form-group">
	                                            <label class="control-label col-lg-3" for="email"> <font color="red">*</font>&nbsp;&nbsp;密码</label>
	                                            <div class="col-lg-9">
	                                              <input type="password" required="required" class="form-control" id="pwd" name="pwd" value="${user.pwd }">
	                                            </div>
	                                          </div>
	                                          <!-- dep -->
	                                          <div class="form-group">
	                                            <label class="control-label col-lg-3" for="name"> <font color="red">*</font>&nbsp;&nbsp;部门</label>
	                                            <div class="col-lg-9">
	                                              	<select name="depUuid">
	                            						<option value="1" <c:if test="${user.depUuid==1 }">selected="selected"</c:if>>总裁办</option>   
	                            						<option value="2" <c:if test="${user.depUuid==2 }">selected="selected"</c:if>>采购部</option> 
	                            						<option value="3" <c:if test="${user.depUuid==3 }">selected="selected"</c:if>>销售部</option> 
	                            						<option value="4" <c:if test="${user.depUuid==4 }">selected="selected"</c:if>>运输中心</option> 
	                            						<option value="5" <c:if test="${user.depUuid==5 }">selected="selected"</c:if>>库管中心</option> 
	                            						<option value="6" <c:if test="${user.depUuid==6 }">selected="selected"</c:if>>人力资源</option> 
	                            						<option value="7" <c:if test="${user.depUuid==7 }">selected="selected"</c:if>>财务部</option>                	
	                                              	</select>
	                                            </div>
	                                          </div>
	                                          <!-- tel -->
	                                          <div class="form-group">
	                                            <label class="control-label col-lg-3" for="name"> <font color="red">*</font>&nbsp;&nbsp;联系方式</label>
	                                            <div class="col-lg-9">
	                                              <input type="text" required="required"  class="form-control" id="tele"  name="tele" value="${user.tele }">
	                                            </div>
	                                          </div>
	                                          <!-- sex -->
	                                          <div class="form-group">
	                                            <label class="control-label col-lg-3" for="name"> <font color="red">*</font>&nbsp;&nbsp;性别</label>
	                                            <div class="col-lg-9">
	                                              <input type="radio" name="gender" value='1' <c:if test="${user.gender==1 }">checked="checked"</c:if>><b>&nbsp;&nbsp;♂&nbsp;&nbsp;男</b>
	                                              <input type="radio" name="gender" value='0' <c:if test="${user.gender==0 }">checked="checked"</c:if>><b>&nbsp;&nbsp;♀&nbsp;&nbsp;女</b>
	                                            </div>
	                                          </div>
	                                          <!-- birthday -->
	                                          <div class="form-group">
	                                            <label class="control-label col-lg-3" for="name"> <font color="red">*</font>&nbsp;&nbsp;生日</label>
	                                            <div class="col-lg-9">
													<input type="text" required="required"  class="form-control" id="birthday"  name="birthday" value="<fmt:formatDate value="${user.birthday }" pattern="yyyy-MM-dd"/>">
											    </div>
	                                          </div>
	                                          <!-- Accept box and button s-->
	                                          <div class="form-group">
	                                            <div class="col-lg-9 col-lg-offset-3">
	                                              <br />
	                                              <input  type="submit" class="btn btn-danger" value="修改"/>
	                                              <button type="reset" class="btn btn-success">重置</button>
	                                            </div>
	                                            <div class="form-group">
	                                            <div class="col-lg-9 col-lg-offset-3">
												  <div class="checkbox">
	                                              <label>
	                                                  <font color="gray">注：&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="red">*</font><font color="gray">&nbsp;&nbsp;&nbsp;&nbsp;为必填信息</font>
	                                              </label>
												  </div>
	                                             </div> 
	                                          </div>
	                                          </div>
	                  </form>
    </div>
    
</div>
   <!-- Mainbar ends -->
   <div class="clearfix"></div>


<!-- 脚部 -->
	<jsp:include page="../bootstrap/bottom.jsp"></jsp:include>

<!-- Scroll to top -->
<span class="totop"><a href="#"><i class="icon-chevron-up"></i></a></span> 

<!-- JS -->
	<jsp:include page="../bootstrap/bottom_JS.jsp"></jsp:include>
  </body>
</html>
